import rollup from 'rollup'
import { BuildConfig } from './config'

export async function build(options: BuildConfig) {
	const bundle = await rollup.rollup({
		input: options.input
	})
	await bundle.write(options as rollup.OutputOptions)
}
